import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vuesax from "vuesax";
import "vuesax/dist/vuesax.css";
import Element from "element-ui";
import '@/style/index.scss';
import '@/assets/font/iconfont.css';
import "@/utils/rem.js";
import "./permission";
import "vuesax/dist/vuesax.css";
import { WOW } from 'wowjs'
import 'wowjs/css/libs/animate.css'
import MetaInfo from 'vue-meta-info'
Vue.config.productionTip = false
Vue.use(MetaInfo);
Vue.use(Element, { size: "small" });
Vue.use(Vuesax, { size: "small" });
Vue.prototype.$WOW = WOW;
Vue.directive('preloadImg', {
  bind(drag, binding, vNode) {
    let img = new Image();
    img.src = binding.src;
    img.onload = function() {
    }
  }
})
new Vue({
  router,
  store,
  render: h => h(App),
  mounted () {
    document.dispatchEvent(new Event('render-event'))
  }
}).$mount('#app')
